<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>aa</title>
	</head>
	<body>
		<div id="app">
			<input type="button" name="名" id="22" value="v-on指令" v-on:click="doIt"/>
			<input type="button" name="名" id="22" value="v-on指令" @click="doIt"/>
			<input type="button" name="名" id="22" value="v-on指令" @dblclick="doIt"/>
			{{message}}
			{{school.name}}
			<h3 v-text="message+'22'">aa</h3>
			<li>
				{{arr[1]}}
			</li>
		</div>	
		
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<script>
			
			var app=new Vue({
				el:"#app",
				data:{
					message:"aaa",
					school:{
						name :"小黑",
						mobile:"13131"
					},
					arr:["北京","上海","深圳"]
				},
				methods:{
					doIt:function(){
						alert("aaa");
					}
				}
				
				
			})
		</script>
	</body>
</html>
